package com.example.demo;

import com.example.demo.exception.ExController;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
//@EnableConfigurationProperties
@ServletComponentScan
public class Demo11Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(Demo11Application.class, args);
        ConfigurableListableBeanFactory beanFactory = run.getBeanFactory();
        ExController bean = beanFactory.getBean(ExController.class);
        System.out.println(bean);
    }

}
